import request from '@/utils/request'

// 查询订单列表
export function orderList(params) {
  return request({
    url:'/api/order/list',
    method:'get',
    params:params
  })
}

//查询订单详情
export function getOrder(orderId) {
  return request({
    url: '/api/order/query/' +orderId,
    method: 'get'
  })
}

//修改订单
export function updateOrder(data) {
  return request({
    url: '/api/order/updateOrder',
    method: 'post',
    data:data
  })
}

//删除订单
export function delOrder(orderId) {
  return request({
    url: '/api/order/'+orderId,
    method: 'delete',
  })
}

export function delOrders(orderIds) {
  return request({
    url:'/api/order/deleteOrderBatch/'+orderIds,
    method:'delete',
  })
}
